// source --> https://www.0auf100.com/wp-content/plugins/shapepress-dsgvo/public/js/sp-dsgvo-public.js?ver=3.0.20 (function ($) { $(document).ready(function () { // p912419 // cookie advanced settings $(document).on('click', '#popup_accept_button', function (event) { event.preventDefault(); var $selectedGoogleFonts = $("select[name='google-fonts'] option:selected").text(); if ($selectedGoogleFonts === 'Yes') { var $googleFonts = $(document).find('link[data-href]'); $.each($googleFonts, function () { $(this).attr('href', $(this).attr('data-href')).removeAttr('data-href'); }); } }); // check if notice is active and make body higher so that popup dont is in front of bottom links $(window).scroll(function() { if ($('#cookie-notice').is(":visible") == false) return; var height = parseInt($('#cookie-notice').css('height')) + 10; if($(window).scrollTop() + $(window).height() > $(document).height() - (height+20)) { $(document.body).css('padding-bottom', height+'px'); } else { $(document.body).css('padding-bottom', 'inherit'); } }); }); })(jQuery); (function ($) { 'use strict'; var scrollBar = null; /** * Language switcher click (expand/collapse) */ function preparePopupLangSwitcher() { var $active = $('.sp-dsgvo-lang-active'), $dropdown = $('.sp-dsgvo-lang-dropdown'), $switcher = $('.sp-dsgvo-popup-language-switcher'); $active.on('click tap touchstart', function () { $dropdown.toggleClass('active'); }); $(document).on('click tap touchstart ', function (e) { if (!$switcher.is(e.target) && $switcher.has(e.target).length === 0) { $dropdown.removeClass('active'); } }); } /** * Adds Simplebar js scrollbar */ function prepareScrolling() { var $content = $('#sp-dsgvo-privacy-content-category-content'); if ($content.length > 0) { scrollBar = new SimpleBar($('#sp-dsgvo-privacy-content-category-content')[0], { autoHide: false }); } var $moreInformation = $('.sp-dsgvo-popup-more-information-content'); if ($moreInformation.length > 0) { scrollBar = new SimpleBar($('.sp-dsgvo-popup-more-information-content ')[0], { autoHide: false }); } } /** * Adds click event to terms links */ function prepareTermsLinks() { var $links = $('.dsgvo-terms-toggle'); $links.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); var $this = $(this), $content = $('#terms_content_' + $this.attr('data-id')); $content.addClass('active'); scrollBar.recalculate(); $(window).resize(); }); } function preparePopupShowLinks() { var $links = $('.sp-dsgvo-show-privacy-popup'); $links.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); showPopup(); }); // links of privacy policy $links = $('.lwb-ppsp'); $links.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); showPopup(); }); } function preparePopupOverlay() { $('.sp-dsgvo-popup-overlay').on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); closePopup(); }); } function preparePopupActionButtons() { // x button var closeBtns = $('.sp-dsgvo-popup-close'); closeBtns.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); closePopup(); }); // dismiss all button var dismissAllBtns = $('.sp-dsgvo-privacy-btn-accept-nothing'); dismissAllBtns.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); handlePopupButtonAction('dismissAll'); closePopup(); }); // accept selected button var acceptSelectedBtns = $('.sp-dsgvo-privacy-btn-accept-selection'); acceptSelectedBtns.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); handlePopupButtonAction('acceptSelected'); closePopup(); }); // accept all button var acceptAllBtns = $('.sp-dsgvo-privacy-btn-accept-all'); acceptAllBtns.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); handlePopupButtonAction('acceptAll'); closePopup(); }); } function preparePopupSwitches() { // uncheck all $('.sp-dsgvo-switch-integration').not(":disabled").prop('checked', false); $('.sp-dsgvo-switch-integration').change(function () { checkForIntegrationModificationsAndSetColorToButtons(); }); var enabledIntegrations = getEnabledIntegrationsFromCookie(); enabledIntegrations.forEach(function(integration) { // check if the script container exists. if not create it to add script afterwards $('#sp-dsgvo-switch-integration-'+integration).prop('checked', true); }); } function checkForIntegrationModificationsAndSetColorToButtons() { var array1 = getEnabledIntegrationsFromCookie(); var array2 = $('.sp-dsgvo-switch-integration:checked').map(function(){ return $(this).data('slug'); }).get(); var equal = array1.length === array2.length && array1.every(function(value, index) { return value === array2[index]}); if (equal == false) { $('.sp-dsgvo-privacy-btn-accept-selection').addClass('green'); $('.sp-dsgvo-privacy-btn-accept-selection').removeClass('grey'); } else { $('.sp-dsgvo-privacy-btn-accept-selection').removeClass('green'); $('.sp-dsgvo-privacy-btn-accept-selection').addClass('grey'); } } function closePopup() { var $overlay = $('.sp-dsgvo-popup-overlay'); if ($overlay.length > 0) { $overlay.fadeOut(); $overlay.addClass('sp-dsgvo-overlay-hidden'); if (spDsgvoGeneralConfig.showNoticeOnClose == 1 && getAndValidateCookie() == false) { showNotice(); } } } function showPopup() { var $overlay = $('.sp-dsgvo-popup-overlay'); if ($overlay.length > 0) { closeNotice(); $overlay.fadeIn(); $overlay.removeClass('sp-dsgvo-overlay-hidden'); } } function showNotice() { var cnDomNode = $('#cookie-notice'); if (spDsgvoGeneralConfig.hideEffect === 'fade') { cnDomNode.fadeIn(300); } else if (spDsgvoGeneralConfig.hideEffect === 'slide') { cnDomNode.slideDown(300); } else { cnDomNode.css('display', 'flex'); } $('body').addClass('cookies-not-accepted'); } function closeNotice() { var cnDomNode = $('#cookie-notice'); if (cnDomNode.is(":visible") == false) return; if (spDsgvoGeneralConfig.hideEffect === 'fade') { cnDomNode.fadeOut(300, function () { $('#cookie-notice').hide(); $('#cookie-notice-blocker').hide(); $('body').removeClass('cookies-not-accepted'); }); } else if (spDsgvoGeneralConfig.hideEffect === 'slide') { cnDomNode.slideUp(300, function () { $('#cookie-notice').hide(); $('#cookie-notice-blocker').hide(); $('body').removeClass('cookies-not-accepted'); }); } else { $('#cookie-notice').hide(); $('#cookie-notice-blocker').hide(); $('body').removeClass('cookies-not-accepted'); } } function checkCookieAndShowPopupOrNoticeIfNeeded() { if (spDsgvoIntegrationConfig == null) return; if (spDsgvoIntegrationConfig.length == 0 && spDsgvoGeneralConfig.forceCookieInfo == 0) return; if (spDsgvoGeneralConfig.currentPageId == spDsgvoGeneralConfig.privacyPolicyPageId || spDsgvoGeneralConfig.currentPageId == spDsgvoGeneralConfig.imprintPageId) { // dont show popup or notice at imprint or policy page return; } if (getAndValidateCookie() == false) { if (spDsgvoGeneralConfig.initialDisplayType == 'cookie_notice') { showNotice(); } else if (spDsgvoGeneralConfig.initialDisplayType == 'policy_popup') { showPopup(); } } } function showMoreInformationPopup(title, slug, locale) { $('#sp-dsgvo-popup-more-information-title').html(title); $('#sp-dsgvo-popup-more-information-progress').show(); $('.sp-dsgvo-privacy-popup-title-general').hide(); $('#sp-dsgvo-privacy-content-category-content').hide(); $('#sp-dsgvo-privacy-footer').hide(); $('.sp-dsgvo-header-description-text').hide(); $('#sp-dsgvo-more-information-switch-cb').attr('data-slug', slug); $('#sp-dsgvo-more-information-switch-cb').prop('checked', $('#sp-dsgvo-switch-integration-' + slug).prop('checked')); $('#sp-dsgvo-more-information-switch-cb').prop('disabled', $('#sp-dsgvo-switch-integration-' + slug).prop('disabled')); $('.sp-dsgvo-privacy-popup-title-details').show(); $('#sp-dsgvo-popup-more-information').show(); var integrationObject = getIntegrationConfigBySlug(slug); $.get(spDsgvoGeneralConfig.ajaxUrl, { action: 'legal-web-text-action', slug: slug, textId: 'popup', locale: locale, includeGtagManager: integrationObject.withGtm }, function (data) { $('#sp-dsgvo-popup-more-information-title').html(title); $('#sp-dsgvo-popup-more-information-content').html(data); $('#sp-dsgvo-popup-more-information-progress').hide(); $('.sp-dsgvo-privacy-popup-title-details').show(); $('#sp-dsgvo-popup-more-information').show(); }).fail(function() { hideMoreInformationPopup(); }) } function hideMoreInformationPopup() { $('#sp-dsgvo-popup-more-information').hide(); $('.sp-dsgvo-privacy-popup-title-details').hide(); $('#sp-dsgvo-popup-more-information-progress').hide(); $('#sp-dsgvo-popup-more-information-content').html(''); $('#sp-dsgvo-more-information-switch-cb').attr('data-slug', ''); $('#sp-dsgvo-more-information-switch-cb').prop('checked', false); $('.sp-dsgvo-privacy-popup-title-general').show(); $('.sp-dsgvo-header-description-text').show(); $('#sp-dsgvo-privacy-content-category-content').show(); $('#sp-dsgvo-privacy-footer').show(); } function prepareMoreInformationPopup() { var $links = $('.sp-dsgvo-more-information-link'); $links.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); var $this = $(this); var title = $this.attr('data-title'); var slug = $this.attr('data-slug'); showMoreInformationPopup(title, slug, spDsgvoGeneralConfig.locale); }); var closeBtns = $('.sp-dsgvo-popup-more-information-close'); closeBtns.on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); hideMoreInformationPopup(); }); // set the handler for the more information cb that the outside sb also gets set $('#sp-dsgvo-more-information-switch-cb').change(function () { var $this = $(this); var slug = $this.attr('data-slug'); if (slug == '') return; if ($(this).prop('disabled')) return; $('#sp-dsgvo-switch-integration-' + slug).prop('checked', $this.prop('checked')); checkForIntegrationModificationsAndSetColorToButtons(); }); } function preparePopupGroupSwitches() { $('input[name="sp-dsgvo-switch-category"]').change(function () { var $this = $(this); var slug = $this.attr('data-slug') // get all sp-dsgvo-switch-integration with slug and set same check value $('input[data-category="' + slug + '"]').each(function () { if ($(this).prop('disabled')) return; var category = $(this).attr('data-category') $(this).prop('checked', $('#sp-dsgvo-switch-category-' + category).prop('checked')); }); checkForIntegrationModificationsAndSetColorToButtons(); }); } function prepareNotice() { // sometimes wp admin bar sets a margin top. if its greater 0 set it to the notice position //var bodyMt = $('body,html').css('margin-top'); //$('.cn-bottom').css('bottom', bodyMt); $('#cn-btn-settings').on('click tap touchstart', function (event) { event.preventDefault(); event.stopPropagation(); closeNotice(); showPopup(); }); } function handlePopupButtonAction(action) { if (action == null || action == '') return; var allntegrationSlugs = spDsgvoGeneralConfig.allIntegrationSlugs; var selectedSwitches = $('.sp-dsgvo-switch-integration:checkbox:checked'); var checkedIntegrationSlugs = []; switch (action) { case 'acceptAll': checkedIntegrationSlugs = allntegrationSlugs; break; case 'acceptSelected': $(".sp-dsgvo-switch-integration:checkbox:checked").each(function () { checkedIntegrationSlugs.push($(this).data("slug")); }); break; case 'dismissAll': checkedIntegrationSlugs = []; // reset them break; } var enabledIntegrationsBeforeClosing = getEnabledIntegrationsFromCookie(); // add gtag manager if used by integration var gtmNeeded = false; checkedIntegrationSlugs.forEach(function(integration) { var integrationObject = getIntegrationConfigBySlug(integration); if (integrationObject == null) return; if (integrationObject.withGtm == '1') { gtmNeeded = true; return; } }); if (gtmNeeded) checkedIntegrationSlugs.push('google-tagmanager'); refreshCookie(checkedIntegrationSlugs); enableIntegrationsAccordingToCookie(); removeCookiesOfDisabledIntegrations(enabledIntegrationsBeforeClosing); } function refreshCookie(checkedIntegrationSlugs) { var cookieData = {}; cookieData.version = spDsgvoGeneralConfig.cookieVersion; cookieData.lifeTime = spDsgvoGeneralConfig.cookieLifeTime; cookieData.integrations = checkedIntegrationSlugs;// cookieData.lastChangeOn = new Date().getTime(); var flatData = encodeURIComponent(JSON.stringify(cookieData)); var d = new Date(); d.setTime(d.getTime() + parseInt(spDsgvoGeneralConfig.cookieLifeTime) * 1000); var expires = "expires=" + d.toUTCString(); document.cookie = spDsgvoGeneralConfig.cookieName + "=" + flatData + ";" + expires + ";path=/"; } function isGtagMangerIsActive() { return window.google_tag_manager != null; } function enableIntegrationsAccordingToCookie() { var enabledIntegrations = getEnabledIntegrationsFromCookie(); // first check if one needs gtag manager and enable it if needed var gtmNeeded = false; enabledIntegrations.forEach(function(integration) { var integrationObject = getIntegrationConfigBySlug(integration); if (integrationObject == null) return; if (integrationObject.withGtm == '1') { gtmNeeded = true; return; } }); if (gtmNeeded && isGtagMangerIsActive() == false) { var integrationObject = getIntegrationConfigBySlug('google-tagmanager'); if (integrationObject == null) return; try { $('head').append(atob(integrationObject.jsCode)); } catch (e) { console.log('could not activate ' + integrationObject.slug); } } enabledIntegrations.forEach(function(integration) { if (integration == 'google-tagmanager') return; var integrationObject = getIntegrationConfigBySlug(integration); if (integrationObject == null) return; if (integrationObject.insertLocation == 'head') { // check if head contains the script, if not, add it var pos = $("head").html().indexOf('sp-dsgvo-script-container-' + integrationObject.slug); var lastPos = $("head").html().lastIndexOf('sp-dsgvo-script-container-' + integrationObject.slug); if (pos == lastPos) { try { $('head').append(atob(integrationObject.jsCode)); } catch (e) { console.log('could not activate ' + integration); } } } else { // check if the script container exists. if not create it to add script afterwards var scriptContainer = $('.sp-dsgvo-script-container-' + integration); var found = scriptContainer.length; if (found == false) { scriptContainer = $('
', { // id: 'sp-dsgvo-script-container-' + integration, "class": 'sp-dsgvo-script-container sp-dsgvo-script-container-' + integration, }).appendTo(integrationObject.insertLocation); found = true; } // if found and empty add js code to the container var isEmpty = $.trim(scriptContainer.html()) == ''; if (found && isEmpty) { try { scriptContainer.append(atob(integrationObject.jsCode)); } catch (e) { console.log('could not activate ' + integration); } } } }); } function removeCookiesOfDisabledIntegrations(enabledIntegrationsBeforeClosing) { var reloadNeeded = 0; var enabledIntegrations = getEnabledIntegrationsFromCookie(); // it nothing was enabled and all gets dismissed its not needed to to anything // could happen on first visit when dismiss all if (enabledIntegrations.length == 0 && enabledIntegrationsBeforeClosing.length == 0) return; // if nothing is enabled, remove all if (enabledIntegrations == null || enabledIntegrations == '' || enabledIntegrations == '' || Array.isArray(enabledIntegrations) == false) { $('.sp-dsgvo-script-container').each(function () { $(this).empty(); }); spDsgvoIntegrationConfig.forEach(function(integrationConfig) { // remove cookies of the integration var cookiesToDeleteString = integrationConfig.cookieNames; if (cookiesToDeleteString != null || cookiesToDeleteString != '') { var cookieNames = cookiesToDeleteString.split(';'); if (cookieNames != null && cookieNames.length > 0) { cookieNames.forEach(function(cookieName) { deleteCookieByName(cookieName); }); } } }); // safe mode because scripts still could run in browser location.reload(); return; } spDsgvoIntegrationConfig.forEach(function(integrationConfig) { if(enabledIntegrations.includes(integrationConfig.slug) == false) { // check if it was enabled before if (enabledIntegrationsBeforeClosing.includes(integrationConfig.slug)) reloadNeeded++; /* currently not needed because we remove it in reload because otherwise the script cant be removed from js vm //remove script of the integration var scriptContainer = $('#sp-dsgvo-script-container-'+integrationConfig.slug); var found = scriptContainer.length; if (found == false) { // if not found also check in head var children = $('head').find('div#sp-dsgvo-script-container-' + integrationConfig.slug); if (children.length > 0) { scriptContainer = children[0]; found = true; } } if (found) { scriptContainer.empty(); scriptContainer.each(function () { $(this).empty(); }); } */ // remove cookies of the integration var cookiesToDeleteString = integrationConfig.cookieNames; if (cookiesToDeleteString != null || cookiesToDeleteString != '') { var cookieNames = cookiesToDeleteString.split(';'); if (cookieNames != null && cookieNames.length > 0) { cookieNames.forEach(function(cookieName) { deleteCookieByName(cookieName); }); } } } }); if (reloadNeeded > 0) { // safe mode because scripts still could run in browser location.reload(); } } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function validateCookieData(cookie) { if (cookie == null || cookie == '') return false; var cookieData = {}; try { cookieData = JSON.parse(decodeURIComponent(cookie)); } catch (e) { return false; } if (cookieData.version < spDsgvoGeneralConfig.cookieVersion) { return false; } return true; } function getAndValidateCookie() { var cookie = getCookie(spDsgvoGeneralConfig.cookieName); return validateCookieData(cookie); } function getEnabledIntegrationsFromCookie() { var enabledIntegrations = [] var cookie = getCookie(spDsgvoGeneralConfig.cookieName); if (cookie != '') { try { var objectData = JSON.parse(decodeURIComponent(cookie)); enabledIntegrations = objectData.integrations; } catch (e) { enabledIntegrations = []; } } return enabledIntegrations; } function deleteCookieByName(pattern) { if (pattern == '') return; var matcher = new RegExp("^"+pattern, "g"); if ((matcher).test(document.cookie) == false) return; // Get an array of all cookie names (the regex matches what we don't want) var cookieNames = document.cookie.split(/=[^;]*(?:;\s*|$)/); // Remove any that match the pattern for (var i = 0; i < cookieNames.length; i++) { if (matcher.test(cookieNames[i])) { document.cookie = cookieNames[i] + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT;'; // path=' + path; } } } function getIntegrationConfigBySlug(slug) { var integrationObject = spDsgvoIntegrationConfig.find(obj => { return obj.slug === slug }) return integrationObject; } $(document).ready(function () { enableIntegrationsAccordingToCookie(); preparePopupLangSwitcher(); prepareMoreInformationPopup(); prepareTermsLinks(); preparePopupActionButtons(); preparePopupGroupSwitches(); preparePopupSwitches(); prepareScrolling(); prepareNotice(); preparePopupShowLinks(); //preparePopupOverlay(); checkCookieAndShowPopupOrNoticeIfNeeded(); }); })(jQuery); // source --> //www.0auf100.com/wp-content/themes/0auf100v3/bootstrap.min.js?ver=1.0.840 /*! * Bootstrap v3.1.1 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ (function (jQuery) { if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown",h),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=" li:not(.divider):visible a",i=f.find("[role=menu]"+h+", [role=listbox]"+h);if(i.length){var j=i.index(i.filter(":focus"));38==b.keyCode&&j>0&&j--,40==b.keyCode&&j